﻿using System.Windows;
using Microsoft.Phone.Controls;
using Microsoft.Phone.Tasks;

namespace Eurocalculator
{
    public partial class AboutPage : PhoneApplicationPage
    {
        public AboutPage()
        {
            InitializeComponent();
        }

        private void WebPage_Click(object sender, RoutedEventArgs e)
        {
            WebBrowserTask taskOpenWebPage = new WebBrowserTask();
            taskOpenWebPage.URL = (string)WebPage.Content;
            taskOpenWebPage.Show();
        }

        private void MailMe_Click(object sender, RoutedEventArgs e)
        {
            EmailComposeTask taskEmail = new EmailComposeTask();
            taskEmail.To = (string)MailMe.Content;
            taskEmail.Subject = "Mail sent from Eurocalculator";
            taskEmail.Show();
        }

        private void BlogMeClick(object sender, RoutedEventArgs e)
        {
            WebBrowserTask taskOpenBlog = new WebBrowserTask();
            taskOpenBlog.URL = (string)BlogMe.Content;
            taskOpenBlog.Show();
        }
    }
}